<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>cookie</title>
</head>
<body>
            <script>
                console.log(document.cookie);  //cookie 的读取
                document.cookie='name=fank';    //cookie 的设置
                document.cookie='age=20';    //cookie 的设置

                var s  = document.cookie;

            </script>
</body>
</html>